\hypertarget{classduye_1_1_semaphore}{\section{duye\-:\-:Semaphore Class Reference}
\label{classduye_1_1_semaphore}\index{duye\-::\-Semaphore@{duye\-::\-Semaphore}}
}


{\ttfamily \#include $<$duye\-\_\-semaphore.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classduye_1_1_semaphore_aa4b1d49ed31db5ee56b7f56d2cbc8938}{wait} ()
\begin{DoxyCompactList}\small\item\em wait resouce number $>$ 0 \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_semaphore_ab8d6c24559c5f3c214a69eaecce9b343}{try\-Wait} ()
\begin{DoxyCompactList}\small\item\em try wait inc resouce number \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_semaphore_ac70842910f2fa67bf32331742869115a}{timed\-Wait} (const uint64 timeout)
\begin{DoxyCompactList}\small\item\em wait for timeout  \mbox{[}in\mbox{]} timeout \-: millisecond \end{DoxyCompactList}\item 
bool \hyperlink{classduye_1_1_semaphore_a130b7d7f5939e1308d5b0d05549bb32b}{post} ()
\begin{DoxyCompactList}\small\item\em post semaphore, inc resouce number \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
P\-O\-S\-I\-X semaphore wrapper 

\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_semaphore_a130b7d7f5939e1308d5b0d05549bb32b}{\index{duye\-::\-Semaphore@{duye\-::\-Semaphore}!post@{post}}
\index{post@{post}!duye::Semaphore@{duye\-::\-Semaphore}}
\subsubsection[{post}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Semaphore\-::post (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_semaphore_a130b7d7f5939e1308d5b0d05549bb32b}


post semaphore, inc resouce number 

\begin{DoxyReturn}{Returns}
true\-:successed, false\-:don't waited resouce 
\end{DoxyReturn}
\hypertarget{classduye_1_1_semaphore_ac70842910f2fa67bf32331742869115a}{\index{duye\-::\-Semaphore@{duye\-::\-Semaphore}!timed\-Wait@{timed\-Wait}}
\index{timed\-Wait@{timed\-Wait}!duye::Semaphore@{duye\-::\-Semaphore}}
\subsubsection[{timed\-Wait}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Semaphore\-::timed\-Wait (
\begin{DoxyParamCaption}
\item[{const uint64}]{timeout}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_semaphore_ac70842910f2fa67bf32331742869115a}


wait for timeout  \mbox{[}in\mbox{]} timeout \-: millisecond 

\begin{DoxyReturn}{Returns}
true\-:successed, false\-:don't waited resouce 
\end{DoxyReturn}
\hypertarget{classduye_1_1_semaphore_ab8d6c24559c5f3c214a69eaecce9b343}{\index{duye\-::\-Semaphore@{duye\-::\-Semaphore}!try\-Wait@{try\-Wait}}
\index{try\-Wait@{try\-Wait}!duye::Semaphore@{duye\-::\-Semaphore}}
\subsubsection[{try\-Wait}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Semaphore\-::try\-Wait (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_semaphore_ab8d6c24559c5f3c214a69eaecce9b343}


try wait inc resouce number 

\begin{DoxyReturn}{Returns}
true\-:successed, false\-:don't waited resouce 
\end{DoxyReturn}
\hypertarget{classduye_1_1_semaphore_aa4b1d49ed31db5ee56b7f56d2cbc8938}{\index{duye\-::\-Semaphore@{duye\-::\-Semaphore}!wait@{wait}}
\index{wait@{wait}!duye::Semaphore@{duye\-::\-Semaphore}}
\subsubsection[{wait}]{\setlength{\rightskip}{0pt plus 5cm}bool duye\-::\-Semaphore\-::wait (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_semaphore_aa4b1d49ed31db5ee56b7f56d2cbc8938}


wait resouce number $>$ 0 

\begin{DoxyReturn}{Returns}
true\-:successed, false\-:don't waited resouce 
\end{DoxyReturn}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/system/\hyperlink{duye__semaphore_8h}{duye\-\_\-semaphore.\-h}\end{DoxyCompactItemize}
